package dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class UserDao {

    public void insert(Connection connection) throws SQLException {
        // 操作user表
        PreparedStatement preparedStatement = connection.prepareStatement("insert into user values(?,?)");
        preparedStatement.setInt(1, 1);
        preparedStatement.setInt(2, 2);
        preparedStatement.executeUpdate();
    }
}
